import request from '@/utils/request'

// 查询退住登记列表
export function listRetreat(query) {
  return request({
    url: '/system/retreat/list',
    method: 'get',
    params: query
  })
}

// 查询退住登记详细
export function getRetreat(id) {
  return request({
    url: '/system/retreat/' + id,
    method: 'get'
  })
}

// 新增退住登记
export function addRetreat(data) {
  return request({
    url: '/system/retreat',
    method: 'post',
    data: data
  })
}

// 修改退住登记
export function updateRetreat(data) {
  return request({
    url: '/system/retreat',
    method: 'put',
    data: data
  })
}

// 删除退住登记
export function delRetreat(id) {
  return request({
    url: '/system/retreat/' + id,
    method: 'delete'
  })
}
